<?php
include_once("inc/facebook.php"); //include facebook SDK
 
######### edit details ##########
$appId = '225056930986230'; //Facebook App ID
$appSecret = 'ecffbd143b8365f2e82fdb31dcea331c'; // Facebook App Secret

$return_url = 'http://wicity.vn/popup/iud/index.php';  //return url (url to script)
$homeurl = 'http://wicity.vn/popup/iud/index.php';  //return to home
$fbPermissions = 'publish_actions';  //Required facebook permissions
##################################

//Call Facebook API
$facebook = new Facebook(array(
  'appId'  => $appId,
  'secret' => $appSecret
));

$fbuser = $facebook->getUser();//die($fbuser);
?>